<template>
    <div>
        <van-card v-for="i in lblist" :price="i.goods_price" :title="i.goods_name" :thumb="i.goods_big_logo" />
    </div>
</template>

<script setup>
import axios from 'axios';
import { ref } from 'vue';
import { useRoute } from 'vue-router';
const route = useRoute()
const lblist = ref([])
axios.get('https://api-hmugo-web.itheima.net/api/public/v1/goods/search', {
    params: {
        cid: route.query.cid
    }
}).then((res) => {
    lblist.value = res.data.message.goods
})

  
  
</script>

<style></style>